home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / x_valin.swf / scripts / DefineSprite_56 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  528 b   |  29 lines

  1. if(getProperty("../jug", _X) == _X and getProperty("../jug", _Y) == _Y)
  2. {
  3.    tellTarget(_root.audio.doorsound)
  4.    {
  5.       gotoAndPlay(2);
  6.    }
  7.    tellTarget(_root.jug)
  8.    {
  9.       gotoAndPlay(1);
  10.    }
  11.    tellTarget(_root.audioback)
  12.    {
  13.       gotoAndPlay(_currentframe + 9);
  14.    }
  15.    n = 1;
  16.    while(eval("_root:maxvicentes") >= n)
  17.    {
  18.       tellTarget("../v" add n)
  19.       {
  20.          removeMovieClip("");
  21.       }
  22.       n++;
  23.    }
  24.    tellTarget(_root)
  25.    {
  26.       gotoAndStop(_currentframe + 10);
  27.    }
  28. }
  29.